/*
 * messageToProcess.cc
 *
 *  Created on: Jul 18, 2011
 *      Author: peckb1
 */

#include "messageToProcess.h"

MessageToProcess::MessageToProcess(int originalMachineId, int originalMachineMailBox, int clientMachineId, int clientMailBox, char* originalMessage, int timestamp) {
    _originalMachineId = originalMachineId;
    _originalMachineMailBox = originalMachineMailBox;
    _clientMachineId = clientMachineId;
    _clientMailBox = clientMailBox;
    _timestamp = timestamp;
    _originalMessage = new char[strlen(originalMessage)];
    strcpy(_originalMessage, originalMessage);
}

MessageToProcess::~MessageToProcess() {
    delete _originalMessage;
}

int
MessageToProcess::GetOriginalMachineId() {
    return _originalMachineId;
}

int
MessageToProcess::GetOriginalMachineMailBox() {
    return _originalMachineMailBox;
}

int
MessageToProcess::GetClientMachineId() {
    return _clientMachineId;
}

int
MessageToProcess::GetClientMailBox() {
    return _clientMailBox;
}

int
MessageToProcess::GetTimestamp() {
    return _timestamp;
}

char*
MessageToProcess::GetOriginalMessage() {
    return _originalMessage;
}
